import { Application } from "egg";

export default (app: Application) => {
  const { router, controller } = app;
  router.get("/api/users", controller.user.list);
  router.put("/api/user/freezer/:id", controller.user.freezer);
  router.put("/api/user/:id", controller.user.update);
  router.delete("/api/user/:id", controller.user.delete);
  router.post("/api/user", controller.user.create);
};
